package org.jfonia.musicxml.model;

import org.w3c.dom.Node;


// TODO: what about 'measure-style'? also indicates repeat-structure (?)

public class BarLine extends Element implements MeasureElement
{
	private String  location; 		// left / right / middle / null
	private String  barStyle = null;	// regular, dotted, dashed, heavy, light-light, 
										//light-heavy, heavy-light, heavy-heavy, and none
	private String  endingType = null;
	private String  endingNumber = null;
	// segno
	// coda
	// two fermata's

	// derived from repeat-direction:
	private boolean forward = false;
	private boolean backward = false;	// note: can be both forward and backward!

	public BarLine(Node node) 
	{
		super(node);
	}
	

	public boolean isBackward()
	{
		return backward;
	}

	public boolean isForward()
	{
		return forward;
	}

	public String getLocation()
	{
		return location;
	}

	public void setBackward(boolean backward)
	{
		this.backward = backward;
	}

	public String getEndingType()
	{
		return endingType;
	}

	public void setLocation(String location)
	{
		this.location = location;
	}

	public String getBarStyle()
	{
		return barStyle;
	}
	
	public void setBarStyle(String barStyle)
	{
		this.barStyle = barStyle;
	}

	public String getEndingNumber()
	{
		return endingNumber;
	}

	public void setEndingNumber(String endingNumber)
	{
		this.endingNumber = endingNumber;
	}

	public void setEndingType(String endingType)
	{
		this.endingType = endingType;
	}

	public void setForward(boolean forward)
	{
		this.forward = forward;
	}

	
	
}
